package com.gxxy.spring.kp02_modules.cls02_container.s3_factorybeancreate;

import org.springframework.beans.factory.FactoryBean;

//一个普通的类, 只要实现了FactoryBean接口, 那么Spring的容器就会认为这个类是一个工厂类
public class FactoryCreateBeanFactory implements FactoryBean<FactoryCreateBean> {

	@Override
	public FactoryCreateBean getObject() throws Exception {
		FactoryCreateBean bean = new FactoryCreateBean();
		bean.init();
		return bean;
	}

	@Override
	public Class<?> getObjectType() {
		return FactoryCreateBean.class;
	}

	@Override
	public boolean isSingleton() {
		return false;
	}
}
